package com.rbj.eureka.client;

import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

@EnableConfigurationProperties(RBJEurekaClientProperties.class)
@ConditionalOnProperty(value = "rbj.eureka.client.enable", matchIfMissing = true)
public class RBJEurekaClientAutoConfiguration {

    @Bean
    public RBJEurekaClient rbjEurekaClient() {
        return new RBJEurekaClient();
    }

}
